import java.util.ArrayList;
import java.util.List;

/*
 * @author zzr
 * @date: 2025/03/14  17:37
 * @description:一道笔试题
 */
public class Test2 {
    public static List<Character> fun(String s1, String s2) {
        List<Character> list = new ArrayList<>();

        for (int i = 0; i < s1.length(); i++) {
            char ch = s1.charAt(i);
            if(!s2.contains(ch + "")) {
                list.add(ch);
            }
        }
        return list;
    }

    public static void main(String[] args) {
        String s1 = "welcome to cvte";
        String s2 = "come";
        System.out.println(fun(s1,s2));
    }
}
